/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Hoja8;

/**
 *
 * @author Josue
 */
public class AVL implements WordSet{
    AvlTree arbol;
    Word retorno;
    public AVL(){
        arbol = new AvlTree();
    }

    @Override
    public void add(Word wordObject) {
        arbol.insert(wordObject);
    }

    @Override
    public Word get(Word word) {
        retorno = (Word)arbol.find(word);
        return retorno;
    }
        
}
